diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 4bb70871873f..26d3c61116c0 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1225,9 +1225,14 @@ static inline void inode_inc_link_count(struct inode *inode) | |||
1225 | mark_inode_dirty(inode); | 1225 | mark_inode_dirty(inode); |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | static inline void inode_dec_link_count(struct inode *inode) | 1228 | static inline void drop_nlink(struct inode *inode) |
1229 | { | 1229 | { |
1230 | inode->i_nlink--; | 1230 | inode->i_nlink--; |
1231 | } | ||
1232 | |||
1233 | static inline void inode_dec_link_count(struct inode *inode) | ||
1234 | { | ||
1235 | drop_nlink(inode); | ||
1231 | mark_inode_dirty(inode); | 1236 | mark_inode_dirty(inode); |
1232 | } | 1237 | } |
1233 | 1238 | ||