All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nilfs2: trivial cleanups
@ 2009-11-15  4:49 Jiro SEKIBA
       [not found] ` <1258260585-3479-1-git-send-email-jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Jiro SEKIBA @ 2009-11-15  4:49 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg; +Cc: Jiro SEKIBA, Ryusuke Konishi

Hi,

This is trival cleanup patch series.

First patch deleted unused struct nilfs_dat_group_desc.

Second patch deleted inconsistent comment.


 fs/nilfs2/inode.c         |    1 -
 include/linux/nilfs2_fs.h |    9 ---------
 2 files changed, 0 insertions(+), 10 deletions(-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] nilfs2: deleted struct nilfs_dat_group_desc
       [not found] ` <1258260585-3479-1-git-send-email-jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
@ 2009-11-15  4:49   ` Jiro SEKIBA
  2009-11-15  4:49   ` [PATCH 2/2] nilfs2: deleted inconsistent comment in nilfs_load_inode_block() Jiro SEKIBA
  2009-11-15  8:45   ` [PATCH 0/2] nilfs2: trivial cleanups Ryusuke Konishi
  2 siblings, 0 replies; 4+ messages in thread
From: Jiro SEKIBA @ 2009-11-15  4:49 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg; +Cc: Jiro SEKIBA, Ryusuke Konishi

struct nilfs_dat_group_desc is not used both in kernel and user spaces.
struct nilfs_palloc_group_desc is used instead.

Signed-off-by: Jiro SEKIBA <jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
---
 include/linux/nilfs2_fs.h |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/include/linux/nilfs2_fs.h b/include/linux/nilfs2_fs.h
index 3c92223..56e5714 100644
--- a/include/linux/nilfs2_fs.h
+++ b/include/linux/nilfs2_fs.h
@@ -425,15 +425,6 @@ struct nilfs_dat_entry {
 };
 
 /**
- * struct nilfs_dat_group_desc - block group descriptor
- * @dg_nfrees: number of free virtual block numbers in block group
- */
-struct nilfs_dat_group_desc {
-	__le32 dg_nfrees;
-};
-
-
-/**
  * struct nilfs_snapshot_list - snapshot list
  * @ssl_next: next checkpoint number on snapshot list
  * @ssl_prev: previous checkpoint number on snapshot list
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] nilfs2: deleted inconsistent comment in nilfs_load_inode_block()
       [not found] ` <1258260585-3479-1-git-send-email-jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
  2009-11-15  4:49   ` [PATCH 1/2] nilfs2: deleted struct nilfs_dat_group_desc Jiro SEKIBA
@ 2009-11-15  4:49   ` Jiro SEKIBA
  2009-11-15  8:45   ` [PATCH 0/2] nilfs2: trivial cleanups Ryusuke Konishi
  2 siblings, 0 replies; 4+ messages in thread
From: Jiro SEKIBA @ 2009-11-15  4:49 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg; +Cc: Jiro SEKIBA, Ryusuke Konishi

The comment says, "Caller of this function MUST lock s_inode_lock",
however just above the comment, it locks s_inode_lock in the function.

Signed-off-by: Jiro SEKIBA <jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
---
 fs/nilfs2/inode.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c
index 5040220..2a0a5a3 100644
--- a/fs/nilfs2/inode.c
+++ b/fs/nilfs2/inode.c
@@ -664,7 +664,6 @@ int nilfs_load_inode_block(struct nilfs_sb_info *sbi, struct inode *inode,
 	int err;
 
 	spin_lock(&sbi->s_inode_lock);
-	/* Caller of this function MUST lock s_inode_lock */
 	if (ii->i_bh == NULL) {
 		spin_unlock(&sbi->s_inode_lock);
 		err = nilfs_ifile_get_inode_block(sbi->s_ifile, inode->i_ino,
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] nilfs2: trivial cleanups
       [not found] ` <1258260585-3479-1-git-send-email-jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
  2009-11-15  4:49   ` [PATCH 1/2] nilfs2: deleted struct nilfs_dat_group_desc Jiro SEKIBA
  2009-11-15  4:49   ` [PATCH 2/2] nilfs2: deleted inconsistent comment in nilfs_load_inode_block() Jiro SEKIBA
@ 2009-11-15  8:45   ` Ryusuke Konishi
  2 siblings, 0 replies; 4+ messages in thread
From: Ryusuke Konishi @ 2009-11-15  8:45 UTC (permalink / raw)
  To: users-JrjvKiOkagjYtjvyW6yDsg, jir-hfpbi5WX9J54Eiagz67IpQ
  Cc: konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg

On Sun, 15 Nov 2009 13:49:43 +0900, Jiro SEKIBA <jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org> wrote:
> Hi,
> 
> This is trival cleanup patch series.
> 
> First patch deleted unused struct nilfs_dat_group_desc.
> 
> Second patch deleted inconsistent comment.
> 
> 
>  fs/nilfs2/inode.c         |    1 -
>  include/linux/nilfs2_fs.h |    9 ---------
>  2 files changed, 0 insertions(+), 10 deletions(-)

Applied. Thank you!

Ryusuke Konishi

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-15  8:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-15  4:49 [PATCH 0/2] nilfs2: trivial cleanups Jiro SEKIBA
     [not found] ` <1258260585-3479-1-git-send-email-jir-hfpbi5WX9J54Eiagz67IpQ@public.gmane.org>
2009-11-15  4:49   ` [PATCH 1/2] nilfs2: deleted struct nilfs_dat_group_desc Jiro SEKIBA
2009-11-15  4:49   ` [PATCH 2/2] nilfs2: deleted inconsistent comment in nilfs_load_inode_block() Jiro SEKIBA
2009-11-15  8:45   ` [PATCH 0/2] nilfs2: trivial cleanups Ryusuke Konishi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.