diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-02 09:54:12 +0200 | 
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-02 09:54:12 +0200 | 
| commit | 5599617ec0719dba3b1f85a4abca2a6c93368ae3 (patch) | |
| tree | 7d2f9bb6a538ee8ed5cfa391f2cfa72a3e2daa9f /fs/nilfs2/direct.c | |
| parent | 8d19d7d9dbc25d1a1ffa602ed9eff25a88c98163 (diff) | |
| parent | 66fd7a66e8b9e11e49f46ea77910f935c4dee5c3 (diff) | |
Merge remote-tracking branch 'airlied/drm-next' into drm-intel-next-queued
Git got absolutely destroyed with all our cherry-picking from
drm-intel-next-queued to various branches. It ended up inserting
intel_crtc_page_flip 2x even in intel_display.c.
Backmerge to get back to sanity.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'fs/nilfs2/direct.c')
| -rw-r--r-- | fs/nilfs2/direct.c | 17 | 
1 files changed, 7 insertions, 10 deletions
| diff --git a/fs/nilfs2/direct.c b/fs/nilfs2/direct.c index ebf89fd8ac1a..251a44928405 100644 --- a/fs/nilfs2/direct.c +++ b/fs/nilfs2/direct.c @@ -13,11 +13,7 @@   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * GNU General Public License for more details.   * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA - * - * Written by Koji Sato <koji@osrg.net>. + * Written by Koji Sato.   */  #include <linux/errno.h> @@ -62,7 +58,7 @@ static int nilfs_direct_lookup(const struct nilfs_bmap *direct,  static int nilfs_direct_lookup_contig(const struct nilfs_bmap *direct,  				      __u64 key, __u64 *ptrp, -				      unsigned maxblocks) +				      unsigned int maxblocks)  {  	struct inode *dat = NULL;  	__u64 ptr, ptr2; @@ -83,7 +79,8 @@ static int nilfs_direct_lookup_contig(const struct nilfs_bmap *direct,  		ptr = blocknr;  	} -	maxblocks = min_t(unsigned, maxblocks, NILFS_DIRECT_KEY_MAX - key + 1); +	maxblocks = min_t(unsigned int, maxblocks, +			  NILFS_DIRECT_KEY_MAX - key + 1);  	for (cnt = 1; cnt < maxblocks &&  		     (ptr2 = nilfs_direct_get_ptr(direct, key + cnt)) !=  		     NILFS_BMAP_INVALID_PTR; @@ -110,9 +107,9 @@ nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key)  	if (ptr != NILFS_BMAP_INVALID_PTR)  		/* sequential access */  		return ptr; -	else -		/* block group */ -		return nilfs_bmap_find_target_in_group(direct); + +	/* block group */ +	return nilfs_bmap_find_target_in_group(direct);  }  static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) | 
