Skip to content

Commit 5302fb0

Browse files
author
Jaegeuk Kim
committed
f2fs: clean up coding style and redundancy
This patch includes minor clean-ups. Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent fe94793 commit 5302fb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/f2fs/acl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct f2fs_acl_header {
3737
#ifdef CONFIG_F2FS_FS_POSIX_ACL
3838

3939
extern struct posix_acl *f2fs_get_acl(struct inode *, int);
40-
extern int f2fs_set_acl(struct inode *inode, struct posix_acl *acl, int type);
40+
extern int f2fs_set_acl(struct inode *, struct posix_acl *, int);
4141
extern int f2fs_init_acl(struct inode *, struct inode *, struct page *,
4242
struct page *);
4343
#else

fs/f2fs/data.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ static ssize_t f2fs_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
17311731
if (test_opt(F2FS_I_SB(inode), LFS))
17321732
return 0;
17331733

1734-
trace_f2fs_direct_IO_enter(inode, offset, count, iov_iter_rw(iter));
1734+
trace_f2fs_direct_IO_enter(inode, offset, count, rw);
17351735

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

1747-
trace_f2fs_direct_IO_exit(inode, offset, count, iov_iter_rw(iter), err);
1747+
trace_f2fs_direct_IO_exit(inode, offset, count, rw, err);
17481748

17491749
return err;
17501750
}

0 commit comments

Comments
 (0)