diff options
author | Xiaojun Wang <wangxiaojun11@huawei.com> | 2020-08-04 21:46:04 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-09-10 14:03:29 -0700 |
commit | e90027d23aecfce5c3a63b14a676377602d4bdac (patch) | |
tree | 2391a461af2fca5945ffe322634fcbae2627e907 /fs/f2fs/data.c | |
parent | de881df97768d07b342cbd1f8359b832afccace9 (diff) | |
download | lwn-e90027d23aecfce5c3a63b14a676377602d4bdac.tar.gz lwn-e90027d23aecfce5c3a63b14a676377602d4bdac.zip |
f2fs: remove duplicated type casting
Since DUMMY_WRITTEN_PAGE and ATOMIC_WRITTEN_PAGE have already been
converted as unsigned long type, we don't need do type casting again.
Signed-off-by: Xiaojun Wang <wangxiaojun11@huawei.com>
Reported-by: Jack Qiu <jack.qiu@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 73683e58a08d..45256acc2902 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -517,7 +517,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi, zero_user_segment(page, 0, PAGE_SIZE); SetPagePrivate(page); - set_page_private(page, (unsigned long)DUMMY_WRITTEN_PAGE); + set_page_private(page, DUMMY_WRITTEN_PAGE); lock_page(page); if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) f2fs_bug_on(sbi, 1); |