mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
pagemap.h: move dir_pages() over there
That function was declared in a lot of filesystems to calculate directory pages. Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e5e6e97fe0
commit
b57c2cb9ea
8 changed files with 6 additions and 38 deletions
|
|
@ -61,13 +61,6 @@ const struct file_operations vxfs_dir_operations = {
|
|||
.iterate = vxfs_readdir,
|
||||
};
|
||||
|
||||
|
||||
static inline u_long
|
||||
dir_pages(struct inode *inode)
|
||||
{
|
||||
return (inode->i_size + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;
|
||||
}
|
||||
|
||||
static inline u_long
|
||||
dir_blocks(struct inode *ip)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue