jbd2_stats_proc_init wrong place.
Subsystems (2)
PATCH RESEND 1/1 jbd2_stats_proc_init wrong place.
The jbd2_stats_proc_init() was placed on wrong location in jbd2_journal_init_dev(). This may cause /proc/fs/jdb2/<dev>/* cannot be created when using external journal device.
---
--- fs/jbd2/journal.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)
fs/jbd2/journal.c +8 -8
@@ -899,6 +899,14 @@ journal_t * jbd2_journal_init_dev(struct block_device *bdev,/* journal descriptor can store up to n blocks -bzzz */ journal->j_blocksize = blocksize; + journal->j_dev = bdev; + journal->j_fs_dev = fs_dev; + journal->j_blk_offset = start; + journal->j_maxlen = len; +bdevname (journal->j_dev, journal->j_devname); + p = journal->j_devname; +while ((p =strchr (p,'/' ))) + *p ='!' ;jbd2_stats_proc_init (journal); n = journal->j_blocksize /sizeof (journal_block_tag_t); journal->j_wbufsize = n;
@@ -908,14 +916,6 @@ journal_t * jbd2_journal_init_dev(struct block_device *bdev, __func__); goto out_err; } - journal->j_dev = bdev; - journal->j_fs_dev = fs_dev; - journal->j_blk_offset = start; - journal->j_maxlen = len; -bdevname (journal->j_dev, journal->j_devname); - p = journal->j_devname; -while ((p =strchr (p,'/' ))) - *p ='!' ; bh =__getblk (journal->j_dev, start, journal->j_blocksize);if (!bh) {
Signature · 1 line
1.7.2.3
Quoted 5 lines · yangsheng
The
jbd2_stats_proc_init()was placed on wrong location injbd2_journal_init_dev(). This may cause /proc/fs/jdb2/<dev>/* cannot be created when using external journal device.Reviewed-by Andreas Dilger <[email protected]>
Code looks good to me and after a quick testing it seems to be working properly.
-Lukas
Quoted 41 lines
---
--- fs/jbd2/journal.c | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)fs/jbd2/journal.c +8
-8@@ -899,6 +899,14 @@ journal_t * jbd2_journal_init_dev(struct block_device *bdev,/* journal descriptor can store up to n blocks -bzzz */ journal->j_blocksize = blocksize; + journal->j_dev = bdev; + journal->j_fs_dev = fs_dev; + journal->j_blk_offset = start; + journal->j_maxlen = len; +bdevname (journal->j_dev, journal->j_devname); + p = journal->j_devname; +while ((p =strchr (p,'/' ))) + *p ='!' ;jbd2_stats_proc_init (journal); n = journal->j_blocksize /sizeof (journal_block_tag_t); journal->j_wbufsize = n;@@ -908,14 +916,6 @@ journal_t * jbd2_journal_init_dev(struct block_device *bdev, __func__); goto out_err; } - journal->j_dev = bdev; - journal->j_fs_dev = fs_dev; - journal->j_blk_offset = start; - journal->j_maxlen = len; -bdevname (journal->j_dev, journal->j_devname); - p = journal->j_devname; -while ((p =strchr (p,'/' ))) - *p ='!' ; bh =__getblk (journal->j_dev, start, journal->j_blocksize);if (!bh) {
Ted Ts'o
maintainerQuoted 5 lines · yangsheng
The
jbd2_stats_proc_init()was placed on wrong location injbd2_journal_init_dev(). This may cause /proc/fs/jdb2/<dev>/* cannot be created when using external journal device.Reviewed-by Andreas Dilger <[email protected]>
Hi Yang Sheng --- you didn't add a Signed-off-by line. Can you confirm that it was your intention to add a:
... per the "Developer's Certificate of Origin 1.1" as found in /usr/src/linux/Documentation/SubmittingPatches?
Many thanks,
- Ted
Quoted 8 lines · Ted Ts'o
Quoted 6 lines · yangsheng
The
jbd2_stats_proc_init()was placed on wrong location injbd2_journal_init_dev(). This may cause /proc/fs/jdb2/<dev>/* cannot be created when using external journal device.Reviewed-by Andreas Dilger<[email protected]>
Quoted 8 lines
Hi Yang Sheng --- you didn't add a Signed-off-by line. Can you confirm that it was your intention to add a:
Signed-off-by yangsheng<[email protected]>... per the "Developer's Certificate of Origin 1.1" as found in
/usr/src/linux/Documentation/SubmittingPatches?
Sure, you are right. I am forgot to add this line. Could you please add it directly or i resent with this line? TIA.
Thanks
YangSheng
Ted Ts'o
maintainerQuoted 2 lines · yangsheng
Sure, you are right. I am forgot to add this line. Could you please add it directly or i resent with this line? TIA.
No, that's fine. Thanks, I've added your patch to the ext4 patch queue.
- Ted