Skip to contentSkip to conversation

f2fs: remove dead macro PGOFS_OF_NEXT_DNODE

PATCH New Kinglong Mee 1 participant 1 message Feb 28, 2017 F2FS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 f2fs: remove dead macro PGOFS_OF_NEXT_DNODE

Fixes 3cf4574705 ("f2fs: introduce get_next_page_offset to speed up SEEK_DATA")
---
 fs/f2fs/f2fs.h | 6 ------
 1 file changed, 6 deletions(-)
fs/f2fs/f2fs.h +0 -6
index 7e29249..da738c8 100644
@@ -2032,12 +2032,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
  */
Signature · 6 lines
2.9.3


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot