Skip to content

Commit

Permalink
f2fs: clean up coding style and redundancy
Browse files Browse the repository at this point in the history
This patch includes minor clean-ups.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Jaegeuk Kim committed Jul 25, 2016
1 parent fe94793 commit 5302fb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/f2fs/acl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct f2fs_acl_header {
#ifdef CONFIG_F2FS_FS_POSIX_ACL

extern struct posix_acl *f2fs_get_acl(struct inode *, int);
extern int f2fs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
extern int f2fs_set_acl(struct inode *, struct posix_acl *, int);
extern int f2fs_init_acl(struct inode *, struct inode *, struct page *,
struct page *);
#else
Expand Down
4 changes: 2 additions & 2 deletions fs/f2fs/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ static ssize_t f2fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
if (test_opt(F2FS_I_SB(inode), LFS))
return 0;

trace_f2fs_direct_IO_enter(inode, offset, count, iov_iter_rw(iter));
trace_f2fs_direct_IO_enter(inode, offset, count, rw);

down_read(&F2FS_I(inode)->dio_rwsem[rw]);
err = blockdev_direct_IO(iocb, inode, iter, get_data_block_dio);
Expand All @@ -1744,7 +1744,7 @@ static ssize_t f2fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
f2fs_write_failed(mapping, offset + count);
}

trace_f2fs_direct_IO_exit(inode, offset, count, iov_iter_rw(iter), err);
trace_f2fs_direct_IO_exit(inode, offset, count, rw, err);

return err;
}
Expand Down

0 comments on commit 5302fb0

Please sign in to comment.