<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/quota, branch linux-4.0.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.0.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2015-02-10T23:52:38Z</updated>
<entry>
<title>Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs</title>
<updated>2015-02-10T23:52:38Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2015-02-10T23:52:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c5452a58db9bbcb331ee92afa99a6f42e39085c7'/>
<id>urn:sha1:c5452a58db9bbcb331ee92afa99a6f42e39085c7</id>
<content type='text'>
Pull quota interface unification and misc cleanups from Jan Kara:
 "The first part of the series unifying XFS and VFS quota interfaces.

  This part unifies turning quotas on and off so quota-tools and
  xfs_quota can be used to manage any filesystem.  This is useful so
  that userspace doesn't have to distinguish which filesystem it is
  working with.  As a result we can then easily reuse tests for project
  quotas in XFS for ext4.

  This also contains minor cleanups and fixes for udf, isofs, and ext3"

* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: (23 commits)
  udf: remove bool assignment to 0/1
  udf: use bool for done
  quota: Store maximum space limit in bytes
  quota: Remove quota_on_meta callback
  ocfs2: Use generic helpers for quotaon and quotaoff
  ext4: Use generic helpers for quotaon and quotaoff
  quota: Add -&gt;quota_{enable,disable} callbacks for VFS quotas
  quota: Wire up -&gt;quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}
  quota: Split -&gt;set_xstate callback into two
  xfs: Remove some pointless quota checks
  xfs: Remove some useless flags tests
  xfs: Remove useless test
  quota: Verify flags passed to Q_SETINFO
  quota: Cleanup flags definitions
  ocfs2: Move OLQF_CLEAN flag out of generic quota flags
  quota: Don't store flags for v2 quota format
  jbd: drop jbd_ENOSYS debug
  udf: destroy sbi mutex in put_super
  udf: Check length of extended attributes and allocation descriptors
  udf: Remove repeated loads blocksize
  ...
</content>
</entry>
<entry>
<title>Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip</title>
<updated>2015-02-09T22:28:42Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2015-02-09T22:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=23e8fe2e16587494268510c1bc9f6952f50f0311'/>
<id>urn:sha1:23e8fe2e16587494268510c1bc9f6952f50f0311</id>
<content type='text'>
Pull RCU updates from Ingo Molnar:
 "The main RCU changes in this cycle are:

   - Documentation updates.

   - Miscellaneous fixes.

   - Preemptible-RCU fixes, including fixing an old bug in the
     interaction of RCU priority boosting and CPU hotplug.

   - SRCU updates.

   - RCU CPU stall-warning updates.

   - RCU torture-test updates"

* 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (54 commits)
  rcu: Initialize tiny RCU stall-warning timeouts at boot
  rcu: Fix RCU CPU stall detection in tiny implementation
  rcu: Add GP-kthread-starvation checks to CPU stall warnings
  rcu: Make cond_resched_rcu_qs() apply to normal RCU flavors
  rcu: Optionally run grace-period kthreads at real-time priority
  ksoftirqd: Use new cond_resched_rcu_qs() function
  ksoftirqd: Enable IRQs and call cond_resched() before poking RCU
  rcutorture: Add more diagnostics in rcu_barrier() test failure case
  torture: Flag console.log file to prevent holdovers from earlier runs
  torture: Add "-enable-kvm -soundhw pcspk" to qemu command line
  rcutorture: Handle different mpstat versions
  rcutorture: Check from beginning to end of grace period
  rcu: Remove redundant rcu_batches_completed() declaration
  rcutorture: Drop rcu_torture_completed() and friends
  rcu: Provide rcu_batches_completed_sched() for TINY_RCU
  rcutorture: Use unsigned for Reader Batch computations
  rcutorture: Make build-output parsing correctly flag RCU's warnings
  rcu: Make _batches_completed() functions return unsigned long
  rcutorture: Issue warnings on close calls due to Reader Batch blows
  documentation: Fix smp typo in memory-barriers.txt
  ...
</content>
</entry>
<entry>
<title>quota: Store maximum space limit in bytes</title>
<updated>2015-01-30T11:51:21Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-10-09T14:54:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b10a08194c2b615955dfab2300331a90ae9344c7'/>
<id>urn:sha1:b10a08194c2b615955dfab2300331a90ae9344c7</id>
<content type='text'>
Currently maximum space limit quota format supports is in blocks however
since we store space limits in bytes, this is somewhat confusing. So
store the maximum limit in bytes as well. Also rename the field to match
the new unit and related inode field to match the new naming scheme.

Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>quota: Remove quota_on_meta callback</title>
<updated>2015-01-30T11:51:10Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-10-08T16:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aaa3daed156ff3c6acb28c8b18028f8b57d6c91b'/>
<id>urn:sha1:aaa3daed156ff3c6acb28c8b18028f8b57d6c91b</id>
<content type='text'>
There are no more users for quota_on_meta callback. Just remove it.

Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>quota: Add -&gt;quota_{enable,disable} callbacks for VFS quotas</title>
<updated>2015-01-30T11:50:32Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-10-06T16:40:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e2af67e66ff025796af1a8a1fcbb4236304f90c'/>
<id>urn:sha1:3e2af67e66ff025796af1a8a1fcbb4236304f90c</id>
<content type='text'>
Add functions which translate -&gt;quota_enable / -&gt;quota_disable calls
into appropriate changes in VFS quota. This will enable filesystems
supporting VFS quota files in system inodes to be controlled via
Q_XQUOTA[ON|OFF] quotactls for better userspace compatibility.

Also provide a vector for quotactl using these functions which can be
used by filesystems with quota files stored in hidden system files.

Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>quota: Wire up -&gt;quota_{enable,disable} callbacks into Q_QUOTA{ON,OFF}</title>
<updated>2015-01-30T11:50:16Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-10-08T14:07:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d3b863248577504f6eecca2a464d6ddf86b71584'/>
<id>urn:sha1:d3b863248577504f6eecca2a464d6ddf86b71584</id>
<content type='text'>
Make Q_QUOTAON / Q_QUOTAOFF quotactl call -&gt;quota_enable /
-&gt;quota_disable callback when provided. To match current behavior of
ocfs2 &amp; ext4 we make these quotactls turn on / off quota enforcement for
appropriate quota type.

Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>quota: Split -&gt;set_xstate callback into two</title>
<updated>2015-01-30T11:49:40Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-10-08T13:56:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=38e478c4489a845a5e8baf7849c286af5fed5b66'/>
<id>urn:sha1:38e478c4489a845a5e8baf7849c286af5fed5b66</id>
<content type='text'>
Split -&gt;set_xstate callback into two callbacks - one for turning quotas
on (-&gt;quota_enable) and one for turning quotas off (-&gt;quota_disable). That
way we don't have to pass quotactl command into the callback which seems
cleaner.

Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for_linus' into for_next</title>
<updated>2015-01-30T09:16:33Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2015-01-30T09:16:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1cd6b7be92016538ea1f2a8e1f955e9b974d93ea'/>
<id>urn:sha1:1cd6b7be92016538ea1f2a8e1f955e9b974d93ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>quota: Switch -&gt;get_dqblk() and -&gt;set_dqblk() to use bytes as space units</title>
<updated>2015-01-28T08:01:40Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-10-09T14:03:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14bf61ffe6ac54afcd1e888a4407fe16054483db'/>
<id>urn:sha1:14bf61ffe6ac54afcd1e888a4407fe16054483db</id>
<content type='text'>
Currently -&gt;get_dqblk() and -&gt;set_dqblk() use struct fs_disk_quota which
tracks space limits and usage in 512-byte blocks. However VFS quotas
track usage in bytes (as some filesystems require that) and we need to
somehow pass this information. Upto now it wasn't a problem because we
didn't do any unit conversion (thus VFS quota routines happily stuck
number of bytes into d_bcount field of struct fd_disk_quota). Only if
you tried to use Q_XGETQUOTA or Q_XSETQLIM for VFS quotas (or Q_GETQUOTA
/ Q_SETQUOTA for XFS quotas), you got bogus results. Hardly anyone
tried this but reportedly some Samba users hit the problem in practice.
So when we want interfaces compatible we need to fix this.

We bite the bullet and define another quota structure used for passing
information from/to -&gt;get_dqblk()/-&gt;set_dqblk. It's somewhat sad we have
to have more conversion routines in fs/quota/quota.c and another copying
of quota structure slows down getting of quota information by about 2%
but it seems cleaner than overloading e.g. units of d_bcount to bytes.

CC: stable@vger.kernel.org
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
<entry>
<title>quota: Verify flags passed to Q_SETINFO</title>
<updated>2015-01-21T18:21:31Z</updated>
<author>
<name>Jan Kara</name>
</author>
<published>2014-11-19T08:32:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ca6cb0918e8765de304916a15554b42203e6e1fc'/>
<id>urn:sha1:ca6cb0918e8765de304916a15554b42203e6e1fc</id>
<content type='text'>
Currently flags passed via Q_SETINFO were just stored. This makes it
hard to add new flags since in theory userspace could be just setting /
clearing random flags. Since currently there is only one userspace
settable flag and that is somewhat obscure flags only for ancient v1
quota format, I'm reasonably sure noone operates these flags and
hopefully we are fine just adding the check that passed flags are sane.
If we indeed find some userspace program that gets broken by the strict
check, we can always remove it again.

Signed-off-by: Jan Kara &lt;jack@suse.cz&gt;
</content>
</entry>
</feed>
