summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk.kim@samsung.com>2014-03-05 02:48:25 +0100
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-03-05 02:48:53 +0100
commit20f70751c6b4ac5055be9a0d8a3d3189a81afc5a (patch)
tree4273e625688ae770903e39fa4e6c25ec160e0abe /fs/f2fs
parentf2fs: fix to write node pages with WRITE_SYNC (diff)
downloadlinux-20f70751c6b4ac5055be9a0d8a3d3189a81afc5a.tar.xz
linux-20f70751c6b4ac5055be9a0d8a3d3189a81afc5a.zip
f2fs: fix wrong kernel coding style
This patch includes a simple fix to adjust coding style. Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/dir.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/f2fs/dir.c b/fs/f2fs/dir.c
index 582fa00f3597..f3a80ce9ddf5 100644
--- a/fs/f2fs/dir.c
+++ b/fs/f2fs/dir.c
@@ -96,18 +96,19 @@ static struct f2fs_dir_entry *find_in_block(struct page *dentry_page,
struct f2fs_dir_entry *de;
unsigned long bit_pos = 0;
struct f2fs_dentry_block *dentry_blk = kmap(dentry_page);
+ const void *dentry_bits = &dentry_blk->dentry_bitmap;
int max_len = 0;
while (bit_pos < NR_DENTRY_IN_BLOCK) {
- de = &dentry_blk->dentry[bit_pos];
- if (!test_bit_le(bit_pos, &dentry_blk->dentry_bitmap)) {
+ if (!test_bit_le(bit_pos, dentry_bits)) {
if (bit_pos == 0)
max_len = 1;
- else if (!test_bit_le(bit_pos - 1, &dentry_blk->dentry_bitmap))
+ else if (!test_bit_le(bit_pos - 1, dentry_bits))
max_len++;
bit_pos++;
continue;
}
+ de = &dentry_blk->dentry[bit_pos];
if (early_match_name(name, namelen, namehash, de)) {
if (!memcmp(dentry_blk->filename[bit_pos],
name, namelen)) {