fs/cramfs: code clean-up
Fixes some checkpatch errors/warnings: WARNING: Missing a blank line after declarations ERROR: spaces required around that '=' (ctx:VxV) ERROR: "foo * bar" should be "foo *bar" ERROR: space prohibited after that open parenthesis '(' Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4f21e1ea09
commit
31d92e5519
2 changed files with 15 additions and 12 deletions
|
@ -207,6 +207,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
|
|||
|
||||
for (i = 0; i < BLKS_PER_BUF; i++) {
|
||||
struct page *page = pages[i];
|
||||
|
||||
if (page) {
|
||||
wait_on_page_locked(page);
|
||||
if (!PageUptodate(page)) {
|
||||
|
@ -225,6 +226,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
|
|||
data = read_buffers[buffer];
|
||||
for (i = 0; i < BLKS_PER_BUF; i++) {
|
||||
struct page *page = pages[i];
|
||||
|
||||
if (page) {
|
||||
memcpy(data, kmap(page), PAGE_CACHE_SIZE);
|
||||
kunmap(page);
|
||||
|
@ -239,6 +241,7 @@ static void *cramfs_read(struct super_block *sb, unsigned int offset, unsigned i
|
|||
static void cramfs_kill_sb(struct super_block *sb)
|
||||
{
|
||||
struct cramfs_sb_info *sbi = CRAMFS_SB(sb);
|
||||
|
||||
kill_block_super(sb);
|
||||
kfree(sbi);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue