f2fs: remove dead macro PGOFS_OF_NEXT_DNODE
authorKinglong Mee <kinglongmee@gmail.com>
Tue, 28 Feb 2017 13:34:37 +0000 (21:34 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:21 +0000 (22:34 -0400)
Fixes: 3cf4574705 ("f2fs: introduce get_next_page_offset to speed up SEEK_DATA")
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h

index 264c219..902094f 100644 (file)
@@ -2030,12 +2030,6 @@ static inline void *f2fs_kvzalloc(size_t size, gfp_t flags)
        ((is_inode_flag_set(i, FI_ACL_MODE)) ? \
         (F2FS_I(i)->i_acl_mode) : ((i)->i_mode))
 
-/* get offset of first page in next direct node */
-#define PGOFS_OF_NEXT_DNODE(pgofs, inode)                              \
-       ((pgofs < ADDRS_PER_INODE(inode)) ? ADDRS_PER_INODE(inode) :    \
-       (pgofs - ADDRS_PER_INODE(inode) + ADDRS_PER_BLOCK) /    \
-       ADDRS_PER_BLOCK * ADDRS_PER_BLOCK + ADDRS_PER_INODE(inode))
-
 /*
  * file.c
  */