aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-13 07:13:26 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-08-13 11:59:02 -0400
commit0a883a05c54b326bcf99c0902af28dae0386be0a (patch)
tree991adaf14800c5163440ede4da0076e48c1d4494 /fs
parent5acd6ff8ac09eb71f3aef2ccccefab658be8aff4 (diff)
UBIFS: few commentary fixes
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/super.c8
-rw-r--r--fs/ubifs/ubifs.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index 2c268a47641..f71e6b8822c 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -148,7 +148,7 @@ struct inode *ubifs_iget(struct super_block *sb, unsigned long inum)
148 if (err) 148 if (err)
149 goto out_invalid; 149 goto out_invalid;
150 150
151 /* Disable readahead */ 151 /* Disable read-ahead */
152 inode->i_mapping->backing_dev_info = &c->bdi; 152 inode->i_mapping->backing_dev_info = &c->bdi;
153 153
154 switch (inode->i_mode & S_IFMT) { 154 switch (inode->i_mode & S_IFMT) {
@@ -344,7 +344,7 @@ static void ubifs_delete_inode(struct inode *inode)
344 if (err) 344 if (err)
345 /* 345 /*
346 * Worst case we have a lost orphan inode wasting space, so a 346 * Worst case we have a lost orphan inode wasting space, so a
347 * simple error message is ok here. 347 * simple error message is OK here.
348 */ 348 */
349 ubifs_err("can't delete inode %lu, error %d", 349 ubifs_err("can't delete inode %lu, error %d",
350 inode->i_ino, err); 350 inode->i_ino, err);
@@ -1683,10 +1683,10 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
1683 } 1683 }
1684 1684
1685 /* 1685 /*
1686 * UBIFS provids 'backing_dev_info' in order to disable readahead. For 1686 * UBIFS provides 'backing_dev_info' in order to disable read-ahead. For
1687 * UBIFS, I/O is not deferred, it is done immediately in readpage, 1687 * UBIFS, I/O is not deferred, it is done immediately in readpage,
1688 * which means the user would have to wait not just for their own I/O 1688 * which means the user would have to wait not just for their own I/O
1689 * but the readahead I/O as well i.e. completely pointless. 1689 * but the read-ahead I/O as well i.e. completely pointless.
1690 * 1690 *
1691 * Read-ahead will be disabled because @c->bdi.ra_pages is 0. 1691 * Read-ahead will be disabled because @c->bdi.ra_pages is 0.
1692 */ 1692 */
diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index f2dd749d798..d7f706f7a30 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -20,8 +20,6 @@
20 * Adrian Hunter 20 * Adrian Hunter
21 */ 21 */
22 22
23/* Implementation version 0.7 */
24
25#ifndef __UBIFS_H__ 23#ifndef __UBIFS_H__
26#define __UBIFS_H__ 24#define __UBIFS_H__
27 25