* [PATCH 0/9 linux-next] move dir_pages() to pagemap.h
@ 2015-05-24 15:19 Fabian Frederick
2015-05-24 15:19 ` [PATCH 5/9 linux-next] ext2: remove dir_pages() declaration Fabian Frederick
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fabian Frederick @ 2015-05-24 15:19 UTC (permalink / raw)
To: linux-kernel
Cc: Alexander Viro, Fabian Frederick, osd-dev, linux-ext4,
linux-nilfs
This small patchset declares dir_pages() in pagemap.h and
removes declarations in each filesystems.
Fabian Frederick (9):
pagemap.h: declare dir_pages()
nilfs2: remove dir_pages() declaration
ufs: use dir_pages instead of ufs_dir_pages()
fs/qnx6: remove dir_pages() declaration
ext2: remove dir_pages() declaration
minix: remove dir_pages() declaration
exofs: remove dir_pages() declaration
sysv: remove dir_pages() declaration
fs/freevxfs/vxfs_lookup.c: remove dir_pages() declaration
fs/exofs/dir.c | 6 ------
fs/ext2/dir.c | 5 -----
fs/freevxfs/vxfs_lookup.c | 7 -------
fs/minix/dir.c | 5 -----
fs/nilfs2/dir.c | 5 -----
fs/qnx6/dir.c | 5 -----
fs/sysv/dir.c | 5 -----
fs/ufs/dir.c | 13 ++++---------
include/linux/pagemap.h | 6 ++++++
9 files changed, 10 insertions(+), 47 deletions(-)
--
2.4.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 5/9 linux-next] ext2: remove dir_pages() declaration
2015-05-24 15:19 [PATCH 0/9 linux-next] move dir_pages() to pagemap.h Fabian Frederick
@ 2015-05-24 15:19 ` Fabian Frederick
[not found] ` <1432480791-31396-3-git-send-email-fabf@skynet.be>
2015-06-05 14:43 ` [PATCH 0/9 linux-next] move dir_pages() to pagemap.h Al Viro
2 siblings, 0 replies; 4+ messages in thread
From: Fabian Frederick @ 2015-05-24 15:19 UTC (permalink / raw)
To: linux-kernel; +Cc: Alexander Viro, Fabian Frederick, Jan Kara, linux-ext4
dir_pages() is now declared in pagemap.h
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
fs/ext2/dir.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c
index 796b491..0c6638b 100644
--- a/fs/ext2/dir.c
+++ b/fs/ext2/dir.c
@@ -70,11 +70,6 @@ static inline void ext2_put_page(struct page *page)
page_cache_release(page);
}
-static inline unsigned long dir_pages(struct inode *inode)
-{
- return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT;
-}
-
/*
* Return the offset into page `page_nr' of the last valid
* byte in that page, plus one.
--
2.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/9 linux-next] nilfs2: remove dir_pages() declaration
[not found] ` <1432480791-31396-3-git-send-email-fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org>
@ 2015-05-25 1:06 ` Ryusuke Konishi
0 siblings, 0 replies; 4+ messages in thread
From: Ryusuke Konishi @ 2015-05-25 1:06 UTC (permalink / raw)
To: Fabian Frederick
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Alexander Viro,
linux-nilfs-u79uwXL29TY76Z2rM5mHXA, Christoph Hellwig,
Boaz Harrosh, Benny Halevy, osd-dev-yNzVSZO3znNg9hUCZPvPmw,
Jan Kara, linux-ext4-u79uwXL29TY76Z2rM5mHXA, Evgeniy Dushistov
On Sun, 24 May 2015 17:19:42 +0200, Fabian Frederick <fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org> wrote:
> dir_pages() is now declared in pagemap.h
>
> Signed-off-by: Fabian Frederick <fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org>
> ---
> fs/nilfs2/dir.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c
> index 0ee0bed..6b8b92b 100644
> --- a/fs/nilfs2/dir.c
> +++ b/fs/nilfs2/dir.c
> @@ -61,11 +61,6 @@ static inline void nilfs_put_page(struct page *page)
> page_cache_release(page);
> }
>
> -static inline unsigned long dir_pages(struct inode *inode)
> -{
> - return (inode->i_size+PAGE_CACHE_SIZE-1)>>PAGE_CACHE_SHIFT;
> -}
> -
Can you include this and similar changes in the first patch
"pagemap.h: declare dir_pages()" ?
The first patch transiently breaks build because it inserts a
duplicate definition of the dir_pages() inline function until it gets
removed from each file system by the successive patches.
This series looks non-divisible except the patch of ufs.
Regards,
Ryusuke Konishi
> /*
> * Return the offset into page `page_nr' of the last valid
> * byte in that page, plus one.
> --
> 2.4.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 0/9 linux-next] move dir_pages() to pagemap.h
2015-05-24 15:19 [PATCH 0/9 linux-next] move dir_pages() to pagemap.h Fabian Frederick
2015-05-24 15:19 ` [PATCH 5/9 linux-next] ext2: remove dir_pages() declaration Fabian Frederick
[not found] ` <1432480791-31396-3-git-send-email-fabf@skynet.be>
@ 2015-06-05 14:43 ` Al Viro
2 siblings, 0 replies; 4+ messages in thread
From: Al Viro @ 2015-06-05 14:43 UTC (permalink / raw)
To: Fabian Frederick; +Cc: linux-kernel, osd-dev, linux-ext4, linux-nilfs
On Sun, May 24, 2015 at 05:19:40PM +0200, Fabian Frederick wrote:
> This small patchset declares dir_pages() in pagemap.h and
> removes declarations in each filesystems.
Applied, with #2 and #4--9 folded into #1 - otherwise you get build breakage.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-05 14:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-24 15:19 [PATCH 0/9 linux-next] move dir_pages() to pagemap.h Fabian Frederick
2015-05-24 15:19 ` [PATCH 5/9 linux-next] ext2: remove dir_pages() declaration Fabian Frederick
[not found] ` <1432480791-31396-3-git-send-email-fabf@skynet.be>
[not found] ` <1432480791-31396-3-git-send-email-fabf-AgBVmzD5pcezQB+pC5nmwQ@public.gmane.org>
2015-05-25 1:06 ` [PATCH 2/9 linux-next] nilfs2: " Ryusuke Konishi
2015-06-05 14:43 ` [PATCH 0/9 linux-next] move dir_pages() to pagemap.h Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).