Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-8744

Count the journal credits in case of indirect bitmap correctly.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      The commit 85c6c099d83b19480dd4160de57e7ffac5b312af has a typo in condition.

      	} else if (pos + size <= (LDISKFS_NDIR_BLOCKS + 1024) * bs) {
      		/* single indirect */
      		credits = blocks * 3;
      		if (inode == NULL ||
      >>>>>>>	    LDISKFS_I(inode)->i_data[LDISKFS_IND_BLOCK] == 0)
      			credits += 3;
      		else
      			/* The indirect block may be modified. */
      			credits += 1;
      	}
      
      

      It causes the issue that insufficient journal credit in some case

      Attachments

        Activity

          People

            ys Yang Sheng
            ys Yang Sheng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: