diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-09-16 14:36:17 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-09-16 14:36:17 -0400 |
commit | 05496769e5da83ce22ed97345afd9c7b71d6bd24 (patch) | |
tree | 545c4d66296fe69ab24d34fd2f0298fb8ee66e4f /include/linux/jbd2.h | |
parent | 899fc1a4cf404747de2666534d508804597ee22f (diff) | |
download | op-kernel-dev-05496769e5da83ce22ed97345afd9c7b71d6bd24.zip op-kernel-dev-05496769e5da83ce22ed97345afd9c7b71d6bd24.tar.gz |
jbd2: clean up how the journal device name is printed
Calculate the journal device name once and stash it away in the
journal_s structure. This avoids needing to call bdevname()
everywhere and reduces stack usage by not needing to allocate an
on-stack buffer. In addition, we eliminate the '/' that can appear in
device names (e.g. "cciss/c0d0p9" --- see kernel bugzilla #11321) that
can cause problems when creating proc directory names, and include the
inode number to support ocfs2 which creates multiple journals with
different inode numbers.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'include/linux/jbd2.h')
-rw-r--r-- | include/linux/jbd2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 3dd2090..66c3499 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h @@ -850,7 +850,8 @@ struct journal_s */ struct block_device *j_dev; int j_blocksize; - unsigned long long j_blk_offset; + unsigned long long j_blk_offset; + char j_devname[BDEVNAME_SIZE+24]; /* * Device which holds the client fs. For internal journal this will be |