Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a883a05 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBIFS: few commentary fixes

parent 5acd6ff8
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -148,7 +148,7 @@ struct inode *ubifs_iget(struct super_block *sb, unsigned long inum)
	if (err)
	if (err)
		goto out_invalid;
		goto out_invalid;


	/* Disable readahead */
	/* Disable read-ahead */
	inode->i_mapping->backing_dev_info = &c->bdi;
	inode->i_mapping->backing_dev_info = &c->bdi;


	switch (inode->i_mode & S_IFMT) {
	switch (inode->i_mode & S_IFMT) {
@@ -344,7 +344,7 @@ static void ubifs_delete_inode(struct inode *inode)
	if (err)
	if (err)
		/*
		/*
		 * Worst case we have a lost orphan inode wasting space, so a
		 * Worst case we have a lost orphan inode wasting space, so a
		 * simple error message is ok here.
		 * simple error message is OK here.
		 */
		 */
		ubifs_err("can't delete inode %lu, error %d",
		ubifs_err("can't delete inode %lu, error %d",
			  inode->i_ino, err);
			  inode->i_ino, err);
@@ -1683,10 +1683,10 @@ static int ubifs_fill_super(struct super_block *sb, void *data, int silent)
	}
	}


	/*
	/*
	 * UBIFS provids 'backing_dev_info' in order to disable readahead. For
	 * UBIFS provides 'backing_dev_info' in order to disable read-ahead. For
	 * UBIFS, I/O is not deferred, it is done immediately in readpage,
	 * UBIFS, I/O is not deferred, it is done immediately in readpage,
	 * which means the user would have to wait not just for their own I/O
	 * which means the user would have to wait not just for their own I/O
	 * but the readahead I/O as well i.e. completely pointless.
	 * but the read-ahead I/O as well i.e. completely pointless.
	 *
	 *
	 * Read-ahead will be disabled because @c->bdi.ra_pages is 0.
	 * Read-ahead will be disabled because @c->bdi.ra_pages is 0.
	 */
	 */
+0 −2
Original line number Original line Diff line number Diff line
@@ -20,8 +20,6 @@
 *          Adrian Hunter
 *          Adrian Hunter
 */
 */


/* Implementation version 0.7 */

#ifndef __UBIFS_H__
#ifndef __UBIFS_H__
#define __UBIFS_H__
#define __UBIFS_H__