Files
linux-apfs/fs/ext4
Dan Carpenter 9810446836 ext4: simplify some code in read_mmp_block()
My static check complains because we have:

	if (!*bh)
		return -ENOMEM;
	if (*bh) {

The second check is unnecessary.

I've simplified this code by moving the "if (!*bh)" checks around.  Also
Andreas Dilger says we should probably print a warning if sb_getblk()
fails.

[ Restructured the code so that we print a warning message as well if
  the mmp block doesn't check out, and to print the error code to
  disambiguate between the error cases.  - TYT ]

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2015-08-15 11:30:31 -04:00
..
2015-04-02 23:47:42 -04:00
2015-04-02 23:47:42 -04:00
2014-09-11 11:15:15 -04:00
2015-04-02 23:47:42 -04:00
2015-07-28 15:08:41 -04:00
2015-07-09 11:42:21 -07:00
2015-05-02 23:58:32 -04:00